<%--
  Created by IntelliJ IDEA.
  User: rose
  Date: 2024/12/20
  Time: 19:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
 c:if:来完成逻辑判断
    test属性：用于判断条件，条件为true时，标签内的内容才会显示
--%>
<%--<c:if test="true">--%>
<%--    <h1>true</h1>--%>
<%--</c:if>--%>
<%--<c:if test="false">--%>
<%--    <h1>false</h1>--%>
<%--</c:if>--%>
<c:if test="${status == 1}">
    <h1>启用</h1>
</c:if>
<c:if test="${status == 0}">
    <h1>禁用</h1>
</c:if>
</body>
</html>
